package rita.network;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

import org.apache.log4j.Logger;

public class RitaServerWorker extends Thread {

	private Logger log = Logger.getLogger(RitaServerWorker.class);
    private Socket socket; 
    private DataInputStream entradaDatos;
    private DataOutputStream salidaDatos;
    
    public RitaServerWorker(Socket socketEntrada){
    	socket = socketEntrada;
    	
        try {
            entradaDatos = new DataInputStream(socket.getInputStream());
            salidaDatos = new DataOutputStream(socket.getOutputStream());
        } catch (IOException ex) {
            log.error("Error al crear los stream de entrada y salida : " + ex.getMessage());
        }
    }
}
